#include<iostream>
#include<string>
#include<unistd.h>
#include<signal.h>
using namespace std;

int main(int argc,char* argv[])
{

    int m=10;m/=0;
    if(argc!=3)
    {
        cout<<"./mykill target signal"<<endl;
        return 1;
    }
    int sig=stoi(argv[1]);
    pid_t pid=stoi(argv[2]);
    int n=kill(pid,sig);
    cout<<"运行成功"<<endl;
    if(n==0)
    {
        cout<<"send"<<sig<<"to"<<pid<<"success"<<endl;
    }
    return 0;
}
